package com.cyclinggle.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.cyclinggle.cloud.model.User;

@FeignClient(name = "ch4-5-provider")
public interface UserFeignService {
	
	@GetMapping("/users/")
	String getUser(User user);
	
	@PostMapping("/users/update")
	String update(@RequestBody User user);
}
